Given a Linq for XML
XContainer
holding node and link data, replace this model's
NodesSource and
LinksSource collections with collections of new node data and new link data.
Syntax
Parameters
- root
- the
XContainer
holding all of the data - nodedataallocator
- a function that takes an
XElement
and returns either a newly constructed object of type or null if that XElement
is to be ignored - linkdataallocator
- a function that takes an
XElement
and returns either a newly constructed object of type or null if that XElement
is to be ignored
Type Parameters
- NodeDataType
- this must be a class inheriting from GraphLinksModelNodeData<NodeKey>
- LinkDataType
- this must be a class inheriting from GraphLinksModelLinkData<NodeKey,PortKey>
See Also